package yanyi.community.mapper;

import yanyi.community.model.Comment;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    int updateCommentCount(Comment comment);
    List<Comment> findByIdAndType(Long parentId,Integer type);
}